package com.swift.service.permission.impl;

import com.swift.core.permission.Permission;
import com.swift.mapper.permission.PermissionMapper;
import com.swift.service.permission.PermissionService;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author Administrator
 * @description :
 * @date 2022/06/18 16:22
 * @since open jdk 1.8
 */
@Service
public class PermissionServiceImpl implements PermissionService {
    private Logger logger = LoggerFactory.getLogger(PermissionServiceImpl.class);
    @Autowired
    private PermissionMapper permissionMapper;

    @Override
    public Permission queryPermissionInfoByPid(int pid) {
        logger.info("获取用户权限信息,pid:{}",pid);
        return permissionMapper.queryPermissionInfoByPid(pid);
    }
}
